Other Global Variables
The following global variables are available globally.
-
:nodoc This is used internally for debugging metrics
Declaration
Swift
public var NavigationMetricsDebugLoggingEnabled: String
-
For shorter upcoming steps, we link the
AlertLevel.high
instruction. If the upcoming step duration is near the duration ofRouteControllerHighAlertInterval
, we need to apply a bit of a buffer to prevent back to back notifications.A multiplier of
1.2
gives us a buffer of 3 seconds, enough time insert a new instruction.Declaration
Swift
public let RouteControllerLinkedInstructionBufferMultiplier: Double
-
The minimum speed value before the user’s actual location can be considered over the snapped location.
Declaration
Swift
public var RouteSnappingMinimumSpeed: CLLocationSpeed
-
The minimum distance threshold used for giving a
Continue
type instructions.Declaration
Swift
public var RouteControllerMinimumDistanceForContinueInstruction: CLLocationDistance
-
The minimum distance in the opposite direction of travel that triggers rerouting.
Declaration
Swift
public var RouteControllerMinimumBacktrackingDistanceForRerouting: CLLocationDistance
-
Minimum number of consecutive location updates moving backwards before the user is rerouted.
Declaration
Swift
public var RouteControllerMinimumNumberLocationUpdatesBackwards: Int
-
Number of seconds reroute feedback sections are shown in the feedback view after the user is rerouted.
Declaration
Swift
public var RouteControllerNumberOfSecondsForRerouteFeedback: TimeInterval
-
Minimum duration remaining in seconds for proactive rerouting to be active.
Declaration
Swift
public var RouteControllerMinimumDurationRemainingForProactiveRerouting: TimeInterval
-
The number of seconds between attempts to automatically calculate a more optimal route while traveling.
Declaration
Swift
public var RouteControllerProactiveReroutingInterval: TimeInterval
-
Maximum angle the user puck will be rotated when snapping the user’s course to the route line.
Declaration
Swift
public var RouteSnappingMaxManipulatedCourseAngle: CLLocationDirection
-
Minimum Accuracy (maximum deviation, in meters) that the route snapping engine will accept before it stops snapping.
Declaration
Swift
public var RouteSnappingMinimumHorizontalAccuracy: CLLocationAccuracy
-
Minimum number of consecutive incorrect course updates before rerouting occurs.
Declaration
Swift
public var RouteControllerMinNumberOfInCorrectCourses: Int
-
Given a location update, the
horizontalAccuracy
is used to figure out how many consective location updates to wait before rerouting due to consecutive incorrect course updates.Declaration
Swift
public var RouteControllerIncorrectCourseMultiplier: Int
-
When calculating the user’s snapped location, this constant will be used for deciding upon which step coordinates to include in the calculation.
Declaration
Swift
public var RouteControllerMaximumSpeedForUsingCurrentStep: CLLocationSpeed
-
A stop dictionary representing the default line widths of the route line by zoom level when
NavigationMapViewDelegate.navigationMapView(_:routeStyleLayerWithIdentifier:source:)
is undefined.You may use this constant in your implementation of
NavigationMapViewDelegate.navigationMapView(_:routeStyleLayerWithIdentifier:source:)
if you want to keep the default line widths but customize other aspects of the route line.Declaration
Swift
public let MBRouteLineWidthByZoomLevel: [Int : NSExpression]
-
The minium distance remaining on a route before overhead zooming is stopped.
Declaration
Swift
public var NavigationMapViewMinimumDistanceForOverheadZooming: CLLocationDistance
-
Attribute name for the route line that is used for identifying whether a RouteLeg is the current active leg.
Declaration
Swift
public let MBCurrentLegAttribute: String
-
Attribute name for the route line that is used for identifying different
CongestionLevel
along the route.Declaration
Swift
public let MBCongestionAttribute: String
-
The minimum volume for the device before a gentle warning is emitted when beginning navigation.
Declaration
Swift
public let NavigationViewMinimumVolumeForWarning: Float